package com.chuangjiangx.member.basic.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrConfig {
    private Long id;

    private Byte customRecharge;

    private Integer subscribePnGiftScore;

    private Integer cardConsumerGrantScore;

    private Integer storedFunc;

    private Date createTime;

    private Date updateTime;

    private Long merchantId;

    private Integer cardCoverChoice;

    private String cardColour;

    private String cardPicture;

    private String cardName;

    private String contactNumber;

    private String cardPrivilegeExplain;

    private String cardUseNotice;

    private BigDecimal giftScore;

    private Long giftMbrCouponId;

    private Integer wxSyncSwitch;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Byte getCustomRecharge() {
        return customRecharge;
    }

    public void setCustomRecharge(Byte customRecharge) {
        this.customRecharge = customRecharge;
    }

    public Integer getSubscribePnGiftScore() {
        return subscribePnGiftScore;
    }

    public void setSubscribePnGiftScore(Integer subscribePnGiftScore) {
        this.subscribePnGiftScore = subscribePnGiftScore;
    }

    public Integer getCardConsumerGrantScore() {
        return cardConsumerGrantScore;
    }

    public void setCardConsumerGrantScore(Integer cardConsumerGrantScore) {
        this.cardConsumerGrantScore = cardConsumerGrantScore;
    }

    public Integer getStoredFunc() {
        return storedFunc;
    }

    public void setStoredFunc(Integer storedFunc) {
        this.storedFunc = storedFunc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Integer getCardCoverChoice() {
        return cardCoverChoice;
    }

    public void setCardCoverChoice(Integer cardCoverChoice) {
        this.cardCoverChoice = cardCoverChoice;
    }

    public String getCardColour() {
        return cardColour;
    }

    public void setCardColour(String cardColour) {
        this.cardColour = cardColour == null ? null : cardColour.trim();
    }

    public String getCardPicture() {
        return cardPicture;
    }

    public void setCardPicture(String cardPicture) {
        this.cardPicture = cardPicture == null ? null : cardPicture.trim();
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName == null ? null : cardName.trim();
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber == null ? null : contactNumber.trim();
    }

    public String getCardPrivilegeExplain() {
        return cardPrivilegeExplain;
    }

    public void setCardPrivilegeExplain(String cardPrivilegeExplain) {
        this.cardPrivilegeExplain = cardPrivilegeExplain == null ? null : cardPrivilegeExplain.trim();
    }

    public String getCardUseNotice() {
        return cardUseNotice;
    }

    public void setCardUseNotice(String cardUseNotice) {
        this.cardUseNotice = cardUseNotice == null ? null : cardUseNotice.trim();
    }

    public BigDecimal getGiftScore() {
        return giftScore;
    }

    public void setGiftScore(BigDecimal giftScore) {
        this.giftScore = giftScore;
    }

    public Long getGiftMbrCouponId() {
        return giftMbrCouponId;
    }

    public void setGiftMbrCouponId(Long giftMbrCouponId) {
        this.giftMbrCouponId = giftMbrCouponId;
    }

    public Integer getWxSyncSwitch() {
        return wxSyncSwitch;
    }

    public void setWxSyncSwitch(Integer wxSyncSwitch) {
        this.wxSyncSwitch = wxSyncSwitch;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", customRecharge=").append(customRecharge);
        sb.append(", subscribePnGiftScore=").append(subscribePnGiftScore);
        sb.append(", cardConsumerGrantScore=").append(cardConsumerGrantScore);
        sb.append(", storedFunc=").append(storedFunc);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", cardCoverChoice=").append(cardCoverChoice);
        sb.append(", cardColour=").append(cardColour);
        sb.append(", cardPicture=").append(cardPicture);
        sb.append(", cardName=").append(cardName);
        sb.append(", contactNumber=").append(contactNumber);
        sb.append(", cardPrivilegeExplain=").append(cardPrivilegeExplain);
        sb.append(", cardUseNotice=").append(cardUseNotice);
        sb.append(", giftScore=").append(giftScore);
        sb.append(", giftMbrCouponId=").append(giftMbrCouponId);
        sb.append(", wxSyncSwitch=").append(wxSyncSwitch);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrConfig other = (InMbrConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCustomRecharge() == null ? other.getCustomRecharge() == null : this.getCustomRecharge().equals(other.getCustomRecharge()))
            && (this.getSubscribePnGiftScore() == null ? other.getSubscribePnGiftScore() == null : this.getSubscribePnGiftScore().equals(other.getSubscribePnGiftScore()))
            && (this.getCardConsumerGrantScore() == null ? other.getCardConsumerGrantScore() == null : this.getCardConsumerGrantScore().equals(other.getCardConsumerGrantScore()))
            && (this.getStoredFunc() == null ? other.getStoredFunc() == null : this.getStoredFunc().equals(other.getStoredFunc()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getCardCoverChoice() == null ? other.getCardCoverChoice() == null : this.getCardCoverChoice().equals(other.getCardCoverChoice()))
            && (this.getCardColour() == null ? other.getCardColour() == null : this.getCardColour().equals(other.getCardColour()))
            && (this.getCardPicture() == null ? other.getCardPicture() == null : this.getCardPicture().equals(other.getCardPicture()))
            && (this.getCardName() == null ? other.getCardName() == null : this.getCardName().equals(other.getCardName()))
            && (this.getContactNumber() == null ? other.getContactNumber() == null : this.getContactNumber().equals(other.getContactNumber()))
            && (this.getCardPrivilegeExplain() == null ? other.getCardPrivilegeExplain() == null : this.getCardPrivilegeExplain().equals(other.getCardPrivilegeExplain()))
            && (this.getCardUseNotice() == null ? other.getCardUseNotice() == null : this.getCardUseNotice().equals(other.getCardUseNotice()))
            && (this.getGiftScore() == null ? other.getGiftScore() == null : this.getGiftScore().equals(other.getGiftScore()))
            && (this.getGiftMbrCouponId() == null ? other.getGiftMbrCouponId() == null : this.getGiftMbrCouponId().equals(other.getGiftMbrCouponId()))
            && (this.getWxSyncSwitch() == null ? other.getWxSyncSwitch() == null : this.getWxSyncSwitch().equals(other.getWxSyncSwitch()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCustomRecharge() == null) ? 0 : getCustomRecharge().hashCode());
        result = prime * result + ((getSubscribePnGiftScore() == null) ? 0 : getSubscribePnGiftScore().hashCode());
        result = prime * result + ((getCardConsumerGrantScore() == null) ? 0 : getCardConsumerGrantScore().hashCode());
        result = prime * result + ((getStoredFunc() == null) ? 0 : getStoredFunc().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getCardCoverChoice() == null) ? 0 : getCardCoverChoice().hashCode());
        result = prime * result + ((getCardColour() == null) ? 0 : getCardColour().hashCode());
        result = prime * result + ((getCardPicture() == null) ? 0 : getCardPicture().hashCode());
        result = prime * result + ((getCardName() == null) ? 0 : getCardName().hashCode());
        result = prime * result + ((getContactNumber() == null) ? 0 : getContactNumber().hashCode());
        result = prime * result + ((getCardPrivilegeExplain() == null) ? 0 : getCardPrivilegeExplain().hashCode());
        result = prime * result + ((getCardUseNotice() == null) ? 0 : getCardUseNotice().hashCode());
        result = prime * result + ((getGiftScore() == null) ? 0 : getGiftScore().hashCode());
        result = prime * result + ((getGiftMbrCouponId() == null) ? 0 : getGiftMbrCouponId().hashCode());
        result = prime * result + ((getWxSyncSwitch() == null) ? 0 : getWxSyncSwitch().hashCode());
        return result;
    }
}